package com.xyzk.diagnose.activity.adapter;

import java.util.ArrayList;

public abstract class BaseAdapter extends android.widget.BaseAdapter{
	private ArrayList<String> datas;

	public BaseAdapter(ArrayList<String> datas) {
		this.datas = datas;
	}

	@Override
	public int getCount() {
		return datas == null ? 0 : datas.size();

	}

	@Override
	public String getItem(int position) {
		return (datas == null || datas.size() == 0) ? "" : datas.get(position);
	}

	@Override
	public long getItemId(int position) {
		return position;
	}

}
